## 添加当前目录下源文件
aux_source_directory(. pplog_src)

## 添加头文件目录 第一种方式
# include_directories(.)
set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/libs/${PlatForm})
add_library(pplog SHARED ${pplog_src} )

## 添加头文件目录 第二种方式
target_include_directories(pplog PUBLIC .)



# 第二种方式生成库

# project(pplog)
# # 添加头文件目录
# include_directories(
# 	${CMAKE_CURRENT_SOURCE_DIR}
# )
# SET(pplog_srclist 
# 	${CMAKE_CURRENT_SOURCE_DIR}/elog.c
# 	${CMAKE_CURRENT_SOURCE_DIR}/elog_async.c
# 	${CMAKE_CURRENT_SOURCE_DIR}/elog_buf.c
# 	${CMAKE_CURRENT_SOURCE_DIR}/elog_file.c
# 	${CMAKE_CURRENT_SOURCE_DIR}/elog_file_port.c
# 	${CMAKE_CURRENT_SOURCE_DIR}/elog_port.c
# 	${CMAKE_CURRENT_SOURCE_DIR}/elog_utils.c
# 	${CMAKE_CURRENT_SOURCE_DIR}/pplog.c
# )
# set(LIBRARY_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/libs)
# add_library(pplog SHARED ${pplog_srclist})